<?php
class BlogSpaceModel extends Model {	
	public function space($data)
	{
		// 日志列表
		$field = '*';
        $map          = array();
        $map['private'] = array('neq',2);
        $map['status']= 1;
        $map['uid']= $data['uid'];
		$data = M('blog')->field( $field )->where( $map )->order('id DESC')->findPage(20) ;
		return $data;
	}
}